package com.biaobiaoqi.scoreanalysis.service;

import java.util.List;

import com.biaobiaoqi.scoreanalysis.exception.DuplicateClazzException;
import com.biaobiaoqi.scoreanalysis.exception.NoSuchClazzFoundException;
import com.biaobiaoqi.scoreanalysis.exception.NoSuchTeacherFoundException;
import com.biaobiaoqi.scoreanalysis.hibernate.bean.Clazz;
import com.biaobiaoqi.scoreanalysis.hibernate.bean.ClazzType;
import com.biaobiaoqi.scoreanalysis.util.SchoolType;

public interface IClazzService {
	
	public void addClazz(int clazzNumber, int beginYear, int clazzTypeId, SchoolType schoolType,
			String teacherName) throws DuplicateClazzException, NoSuchTeacherFoundException;

	public void addClazz(int clazzNumber, int beginYear, int clazzTypeId, SchoolType schoolType);

	public void modifyClazz(int clazzNumber, int beginYear, ClazzType clazzType, SchoolType schoolType,
			String teacherName) throws NoSuchClazzFoundException, NoSuchTeacherFoundException;

	public void deleteClazz(int clazzNumber, int beginYear) throws NoSuchClazzFoundException;
	
	public void deleteClazz(int clazzId);
	
	public Clazz findClazz(int clazzNumber, int beginYear) ;

	public Clazz findClazz(int clazzId) ;

	public List<Clazz> findClazzByYear(int beginYear);
	
	public List<Clazz> listAllClazz(int begin, int number);

}
